<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="李愧愧">
    <title></title>
    <style>
        .box{
            width: 600px;
            height: 100px;
            border: 1px solid black;
            position: relative;
        }
        span{
            display: block;
            height: 100px;
            width: 100px;
            border: 1px solid black;
        }
        .span1{
            float: left;
            background-color: lightpink;
        }
        .span2{
            float: right;
        }
        .span2:hover{
            
        }
        @keyframes move{
            0%{
                
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <span class="span1">1</span>
        <span class="span2">2</span>
    </div>
<script>
    var span = document.querySelectorAll('span');
    
</script>
</body>
</html>